//基础功能函数

//自动补全
var toFix=function(n , bit) {
    if(!bit)bit = 1;
    var str = n.toString();
    var b = bit - str.length;
    while(b > 0) {
        str = "0" + str;
        b--;
    }
    return str;
}

exports.toFix=toFix;
